var env = process.env.NODE_ENV || 'dev';
exports.mysqlConfig = function(){
  var model = {
    host: 'localhost', //149.129.66.77
    port: 3306,
    user: 'root',
    password: 'Menghuan456@',
    database: 'cssandjs'
  };
  if(env == 'production'){
    model = {
      //host: 'mysql56.rdsmtardgpbyzir.rds.bj.baidubce.com',
      host: 'localhost', //149.129.66.77
      port: 3306,
      //user: 'rootguoyu',
      //password: 'menghuan456',
      user: 'root',
      password: 'Menghuan456@',
      database: 'cssandjs'
      // host: 'mysql56.rdsmtardgpbyzir.rds.bj.baidubce.com', //149.129.66.77
      // port: 3306,
      // user: 'rootguoyu',
      // password: 'menghuan456',
      // database: 'cssandjs'
    }
  }else if(env == 'dev'){
    model = {
      // host: '149.129.66.77', //149.129.66.77
      // port: 3306,
      // user: 'root',
      // password: 'Menghuan456@', //123456
      // database: 'cssandjs'
      host: 'mysql56.rdsmtardgpbyzir.rds.bj.baidubce.com', //149.129.66.77
      port: 3306,
      user: 'rootguoyu',
      password: 'menghuan456',
      database: 'cssandjs'
    }
  }else if(env == 'test'){
    model = {
      host: 'mysql56.rdsmtardgpbyzir.rds.bj.baidubce.com', //149.129.66.77
      port: 3306,
      user: 'rootguoyu',
      password: 'menghuan456',
      database: 'cssandjs'
    }
  }
  return model;
}